import request from "@/utils/request"

//列表查询
export const queryAllApi = () => request.get('/depts')

export const addDeptApi = (data) => request.post('/depts', data)

export const queryByIdApi = (id) => request.get(`/depts/${id}`)

export const updateApi = (data) => request.put('/depts',data) 

export const deleteByIdApi = (id) => request.delete(`/depts?id=${id}`)